package com.Dao;

import com.entity.User;
import org.springframework.stereotype.Repository;


import java.util.List;

@Repository
public interface UserDao {
    List<User> findAll(User user);

    //新增数据
    public int save(User user);

    //删除数据
    public int delete(int id);

    //根据id查找
    public User get(int id);

    //更新数据
    public void update(User user);

    //根据账号查找
    public User selectUserById(int id);

    //根据用户查找
    public User selectUserByName(String username);

    //新增用户
    public int insertUser(User user);
}
